﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site3.Master" AutoEventWireup="true" CodeBehind="小区公告管理.aspx.cs" Inherits="小区物业管理系统.小区公告管理" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <asp:LinqDataSource ID="LinqDataSource1" runat="server" ContextTypeName="小区物业管理系统.小区物业管理系统DataContext" EntityTypeName="" TableName="公告">
    </asp:LinqDataSource>
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" BackColor="White" BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" CellPadding="4" DataKeyNames="公告编号"  ForeColor="Black" GridLines="Vertical" Height="192px" PageSize="3" Width="836px"  >
        <AlternatingRowStyle BackColor="White" />
        <Columns>
            <asp:BoundField DataField="公告编号" HeaderText="公告编号" InsertVisible="False" ReadOnly="True" SortExpression="公告编号" />
            <asp:BoundField DataField="公告标题" HeaderText="公告标题" SortExpression="公告标题" />
            <asp:BoundField DataField="公告内容" HeaderText="公告内容" SortExpression="公告内容" />
            <asp:BoundField DataField="公告日期" HeaderText="公告日期" SortExpression="公告日期" />
            <asp:BoundField DataField="发布人" HeaderText="发布人" SortExpression="发布人" />
        </Columns>
        <FooterStyle BackColor="#CCCC99" />
        <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
        <RowStyle BackColor="#F7F7DE" />
        <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#FBFBF2" />
        <SortedAscendingHeaderStyle BackColor="#848384" />
        <SortedDescendingCellStyle BackColor="#EAEAD3" />
        <SortedDescendingHeaderStyle BackColor="#575357" />
    </asp:GridView>
   
    <br />
    <asp:Label ID="Label2" runat="server" Text="公告编号："></asp:Label>
    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
&nbsp;
    <asp:Label ID="Label3" runat="server" Text="公告标题："></asp:Label>
    <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
&nbsp;
    <br />
    <asp:Label ID="Label5" runat="server" Text="公告日期："></asp:Label>
    <asp:TextBox ID="TextBox4" runat="server"></asp:TextBox>
&nbsp;&nbsp;
    <asp:Label ID="Label6" runat="server" Text="发布人："></asp:Label>
    <asp:TextBox ID="TextBox5" runat="server"></asp:TextBox>
    <br />
    <asp:Label ID="Label4" runat="server" Text="公告内容："></asp:Label>
    <asp:TextBox ID="TextBox3" runat="server" Height="75px" TextMode="MultiLine" Width="245px"></asp:TextBox>
&nbsp;&nbsp;
    <asp:Button ID="Button1" runat="server" Height="34px" OnClick="Button1_Click" Text="添加" Width="90px" />
    &nbsp;&nbsp;
    <asp:Button ID="Button2" runat="server" Height="34px" OnClick="Button2_Click" Text="删除" Width="73px" />
    <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
</asp:Content>
